<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('vehiculo_usuario/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id_vehiculo_usuario='.$form->getObject()->getIdVehiculoUsuario() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
  <table style="margin:auto; text-align:center; background-color:#CCC; padding:10px;" class="corner">
    <tfoot>
      <tr>
        <td colspan="2" style="text-align:left;"><br />
          <?php echo $form->renderHiddenFields(false) ?>
          &nbsp;<a href="<?php echo url_for('vehiculo_usuario/index') ?>" class="button-enviar">Volver al Listado</a>
          <?php if (!$form->getObject()->isNew()): ?>
            &nbsp;<?php //echo link_to('Eliminar', 'vehiculo_usuario/delete?id_vehiculo_usuario='.$form->getObject()->getIdVehiculoUsuario(), array('method' => 'delete', 'confirm' => 'Are you sure?')) ?>
          <?php endif; ?>
          <input type="submit" value="Guardar" class="button-enviar" />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <th align="left"><?php echo $form['anio']->renderLabel() ?><?php echo $form['anio']->renderError() ?>
         </th>
        <td align="left">
           <?php echo $form['anio'] ?>
        </td>
      
        <th width="50" align="left"><?php echo $form['modelo']->renderLabel() ?></th>
        <td align="left">
         <?php echo $form['modelo']->renderError() ?>
          <?php echo $form['modelo'] ?> 
        </td>
      </tr>
      <tr>
        <th width="50" align="left"><?php echo $form['kilometraje']->renderLabel() ?></th>
        <td align="left">
          <?php echo $form['kilometraje']->renderError() ?>
          <?php echo $form['kilometraje'] ?>
        </td>
      </tr>
      <tr>
        <th align="left"><?php echo $form['placa']->renderLabel() ?></th>
        <td align="left">
          <?php echo $form['placa']->renderError() ?>
          <?php echo $form['placa'] ?>
        </td>
      </tr>
      <tr>
        <th><?php //echo $form['id_usuario']->renderLabel() ?></th>
        <td>
          <?php echo $form['id_usuario']->renderError() ?>
          <?php echo $form['id_usuario'] ?>
        </td>
      </tr>
    </tbody>
  </table>
</form>

<?php //echo $form; ?>
